<template>
  <slot v-if="getUserAuthBtnList" />
</template>

<script lang="ts" setup>
import { computed, PropType } from 'vue';

const props = defineProps({
	value: {
		type: String as PropType<string>,
		default: () => '',
	},
});
const getUserAuthBtnList = computed(() => {
	return ['btn.add', 'btn.edit', 'btn.del', 'btn.link'].some((v: any) => v === props.value);
});
</script>
